import React from 'react'
import { v4 as uuidV4 } from 'uuid'
import dayjs from 'dayjs'

export default function dayjs和uuid() {
    return (
        <div>
            {/* uuid用法 */}
            {uuidV4()}
            <br />
            {/*dayjs用法 */}
            {dayjs(new Date()).format('MM-DD hh:mm')}
        </div>
    )
}
